package com.dv.driverless.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.dv.driverless.mapper.PlanDeliveryMapper;
import com.dv.driverless.domain.PlanDelivery;
import com.dv.driverless.service.IPlanDeliveryService;

/**
 * 出库计划Service业务层处理
 *
 * @author ruoyi
 * @date 2023-04-14
 */
@Service
public class PlanDeliveryServiceImpl implements IPlanDeliveryService
{
    @Autowired
    private PlanDeliveryMapper planDeliveryMapper;

    /**
     * 查询出库计划
     *
     * @param id 出库计划主键
     * @return 出库计划
     */
    @Override
    public PlanDelivery selectPlanDeliveryById(Long id)
    {
        return planDeliveryMapper.selectPlanDeliveryById(id);
    }

    /**
     * 查询出库计划列表
     *
     * @param planDelivery 出库计划
     * @return 出库计划
     */
    @Override
    public List<PlanDelivery> selectPlanDeliveryList(PlanDelivery planDelivery)
    {
        return planDeliveryMapper.selectPlanDeliveryList(planDelivery);
    }

    /**
     * 新增出库计划
     *
     * @param planDelivery 出库计划
     * @return 结果
     */
    @Override
    public int insertPlanDelivery(PlanDelivery planDelivery)
    {
        return planDeliveryMapper.insertPlanDelivery(planDelivery);
    }

    /**
     * 修改出库计划
     *
     * @param planDelivery 出库计划
     * @return 结果
     */
    @Override
    public int updatePlanDelivery(PlanDelivery planDelivery)
    {
        return planDeliveryMapper.updatePlanDelivery(planDelivery);
    }

    /**
     * 批量删除出库计划
     *
     * @param ids 需要删除的出库计划主键
     * @return 结果
     */
    @Override
    public int deletePlanDeliveryByIds(Long[] ids)
    {
        return planDeliveryMapper.deletePlanDeliveryByIds(ids);
    }

    /**
     * 删除出库计划信息
     *
     * @param id 出库计划主键
     * @return 结果
     */
    @Override
    public int deletePlanDeliveryById(Long id)
    {
        return planDeliveryMapper.deletePlanDeliveryById(id);
    }
}
